package sg.edu.nus.iss.team8s.vmcs.commons;

import java.awt.Color;

public class Constant {
	
	public static final int BUTTON_SMALL=0;
	public static final int BUTTON_BIG=1;
	public static final int LABEL_WITH_WHITE_BGRD=2;
	public static final int LABEL_WITH_RED_BGRD=3;
	public static final int LABEL_WITH_BLACK_BGRD_LONGER=4;
	public static final int LABEL_WITH_BLACK_BGRD_SHORTER=5;
	public static final int LABEL_WITH_NORMAL_BGRD=6;
	public static final int LABEL_TITLE=7;
	public static final int LABEL_WITH_GREEN_BGRD=8;
	public static final int BUTTON_LONG=9;
	
	public static final int PANEL_WIDTH = 360;
	
	public static final Color DEFAULT_BACKGROUND_COLOR = getDefaultBackgroundColor();
	
	private static Color getDefaultBackgroundColor(){
		Color defaultBackgroundColor = null;
		
		String osName = System.getProperty("os.name");
		
		if("Windows XP".equals(osName)){
			//defaultBackgroundColor = new Color(236,233,216);
			defaultBackgroundColor = new Color(163,200,169);
		}
		
		if("Windows Vista".equals(osName)){
			//defaultBackgroundColor = new Color(240,240,240);
			defaultBackgroundColor = new Color(163,200,169);
		}
		
		return defaultBackgroundColor;
	}
}
